import 'package:flutter/material.dart';
class Test_BuildContext extends StatelessWidget {
  const Test_BuildContext({super.key});

  @override
  Widget build(BuildContext context) {
    Theme.of(context); //获取主题
    // Navigator.push(context, 'route'); //入栈新路由
    // Localizations.of(context, 'type'); //获取Local
    context.size; //获取上下文大小
    context.findRenderObject(); //查找当前或最近的一个祖先RenderObject
    return Scaffold(
        appBar: AppBar(title: const Text('Test_BuildContext')),
        body:const  Column(children: [

        ])
    );
  }
}


